package com.qiku.service;

import com.github.pagehelper.PageInfo;
import com.qiku.domain.PromotionAd;
import com.qiku.domain.PromotionAdVo;

public interface PromotionAdService {


    /**
     * 分页获取广告列表数据
     * @param currentPage
     * @param pageSize
     * @return
     */
    public PageInfo<PromotionAd> findAllAdByPage(Integer currentPage,Integer pageSize);

    /**
     *  新建广告接口
     * @return
     */
    public int savePromotionAd(PromotionAd promotionAd);
    /**
     *  修改广告接口
     * @return
     */
    public int updatePromotionAd(PromotionAd promotionAd);
    /**
     * 接收广告ID,返回广告详细信息
     * @param id
     * @return
     */
    public PromotionAd findPromotionAdById(Integer id);

    /**
     * 修改广告上下线状态
     * @param id
     * @param status
     * @return
     */
    public int updatePromotionAdStatus(Integer id , int status);
}
